/**
 * Copyright(c) 2010 Ceno Techonologies Co., Ltd.
 *
 * History:
 *   15-8-6 上午10:26 Created by piaohh
 */
package com.jade.bss.base.provision.customer;

import com.jade.bss.base.BssException;

/**
 * 删除企业信息
 * @author <a href="mailto:Administrator@ceno.cn">piaohh</a>
 * @version 1.0 15-8-6 上午10:26
 */
public class RemoveEnterpriseValve extends AbstractCustomerValve
{
    @Override
    protected void doHandle(CustomerContext context)
            throws BssException
    {
        long customerId = context.getCustomerId();
        if (context.getCustomer() != null) {
            customerId = context.getCustomerId();
        }
        customerManager.removeCustomer(customerId);
        mappingManager.removeMappings(customerId);
    }
}
